#include <head.h>
int main(int argc, char const *argv[])
{
    int fd = open("my_HQYJ", O_RDONLY);
    // OPEN_ERR(fd);
    printf("读端\n");
    char buf_read[128];
    while (1)
    {
        memset(buf_read, 0, sizeof(buf_read));
        read(fd, buf_read, sizeof(buf_read));
        if(strlen(buf_read)==0)
        {
            continue;
        } 
        printf("读取\n");
        printf("%s\n", buf_read);
        if (!strcmp(buf_read, "quit"))
        {
            printf("退出读取\n");
            break;
        }
    }
    close(fd);
    return 0;
}
